package com.carrot.uaa.common.exception;

import com.carrot.uaa.constant.BusinessCodeConstants;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 错误响应
 */

@Getter
@AllArgsConstructor
public enum AuthResponseErrorEnum implements IResponseResult{

         AUTH_PHONE_FORMAT_ERROR(200, BusinessCodeConstants.PARAM_CHECK_NO_PASS,"手机号格式错误，请输入正确的手机号"),

         AUTH_PHONE_UNREGISTERED(200,BusinessCodeConstants.PARAM_CHECK_NO_PASS,"手机号未注册，请重新输入"),

         AUTH_SMS_CAPTCHA_SEND_FREQUENTLY(200,BusinessCodeConstants.PARAM_CHECK_NO_PASS,"请勿频繁发送验证码"),

         AUTH_SMS_CAPTCHA_THRESHOLD_LIMIT(200,BusinessCodeConstants.PARAM_CHECK_NO_PASS,"发送短信验证码超出次数"),
       ;



       final Integer httpCode;

       final Integer businessCode;

       final String message;
}
